package com.cskaoyan.service;
/*
 * @author 魏骏杰
 */

import com.cskaoyan.bean.Keyword;
import com.cskaoyan.bean.keyword.KeyWordBO;
import com.cskaoyan.bean.keyword.KeyWordVO;
import com.cskaoyan.bean.wx_search.SearchIndexVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface KeyWordService {
    List<KeyWordVO> getKeyWordList(KeyWordBO keyWordBO);

    void importKeywordData(MultipartFile file, KeyWordService keyWordService);

    int selectKeyword(String keyword);

    void addKeyword(Keyword keyWordVO);

    KeyWordVO createNewKeyWord(KeyWordBO keyWordBO);

    KeyWordVO updateNewKeyWord(KeyWordBO keyWordBO);

    void deleteKeyWord(KeyWordBO keyWordBO);

    boolean hasExistence(KeyWordBO keyWordBO);

    void updateKeywordByKeyword(Keyword keyword);

    SearchIndexVo selectSearchIndexVo(String username);
}
